package com.wxapp.sale.api.feign;

import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.sale.api.feign.fallback.CustomFallBack;
import com.wxapp.sale.api.pojo.po.custom.PAddressVm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lgl
 */
@FeignClient(value = "wxapp-custom", fallback = CustomFallBack.class)
public interface CustomFeign {
    /**
     * 获取地址详细信息
     * @param id
     * @return
     */
    @GetMapping("/address/getDetail/{id}")
    ResultVm<PAddressVm> getDetail(@PathVariable(value = "id") String id);
}
